package com.ruoyi.ruoyixingyue.modules.api.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author 卢壮志
 * @Date 2024/2/23
 * @Time: 19:08
 */
@Data
@ApiModel("课程新增vo")
public class CourseInsertVo {
    @ApiModelProperty("课程名称")
    @NotBlank(message = "课程名称不能为空")
    private String name;

    @ApiModelProperty("教师id")
    @NotNull(message = "教师id不能为空")
    private Long teacherId;

    @ApiModelProperty("课程类型id")
    @NotNull(message = "课程类型不能为空")
    private Long typeId;

    @ApiModelProperty("是否免费")
    @NotNull(message = "是否免费请选择")
    private Integer free;

    @ApiModelProperty("课程状态")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("封面")
    @NotBlank(message = "封面不能为空")
    private String coverUrl;
}
